Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / CellMatrix<T> Class / Swap Method
Row index at which to swap the cell range
Column index at which to swap the cell range
Number of rows to swap.
Number of columns to swap.


In This Topic
    Swap Method (CellMatrix<T>)
    In This Topic
    Swaps a range of cells and pastes it with another range of cells at the specified location.
    Syntax
    'Declaration
     
    
    Public Overridable Sub Swap( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal toRow As Integer, _
       ByVal toColumn As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer _
    ) 
    'Usage
     
    
    Dim instance As CellMatrix(Of T)
    Dim row As Integer
    Dim column As Integer
    Dim toRow As Integer
    Dim toColumn As Integer
    Dim rowCount As Integer
    Dim columnCount As Integer
     
    instance.Swap(row, column, toRow, toColumn, rowCount, columnCount)
    public virtual void Swap( 
       int row,
       int column,
       int toRow,
       int toColumn,
       int rowCount,
       int columnCount
    )

    Parameters

    row
    column
    toRow
    Row index at which to swap the cell range
    toColumn
    Column index at which to swap the cell range
    rowCount
    Number of rows to swap.
    columnCount
    Number of columns to swap.
    See Also